<?php
/**
 * Created by PhpStorm.
 * User: wanghaibo
 * Date: 17/12/5
 * Time: 17:54
 */

namespace App\Http\Controllers\Admin\Scene\Service;

use App\Http\Controllers\Admin\Scene\Repository\SceneBuy as SceneBuyRepository;

class SceneBuy
{
    private $repository;
    public function __construct ()
    {
        $this->repository = new SceneBuyRepository();
    }
    public function getSceneBuyByMember($id){
        $info = $this->repository->with(['scene'])->where('member_id',$id)->get();
        return $info;
    }
    public function getSceneBuyByScene($id){
        $info = $this->repository->with(['member'])->where('scenic',$id)->get();
        return $info;
    }
}